#
# Be sure to run `pod lib lint GeelyLynkcoLogin.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'GeelyLynkcoLogin'
  s.version          = '0.1.9'
  s.summary          = '消费者APP组件模块-用户中心'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'http://git.evun.cn/LYNKCO-APP'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'zhiyong0906' => '9851717@qq.com' }
  
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  
  
#  if ENV['mode'].to_s.include? "GeelyLynkcoLogin"
      #使用zip成果物模式
      puts "GeelyLynkcoLogin成果物模式集成".blue
      s.source           = { :http => 'https://geely-admp-oss.oss-cn-hangzhou.aliyuncs.com/sweet-app-release/ios/GeelyLynkcoLogin.framework-0.1.9.zip' }
      s.ios.vendored_framework   = 'GeelyLynkcoLogin.framework'
      s.source_files = 'GeelyLynkcoLogin.framework/**/*.h'
      s.public_header_files = 'GeelyLynkcoLogin.framework/**/*.h'
      s.prefix_header_file = 'GeelyLynkcoLogin.framework/**/PrefixHeader.pch'
      s.resources = ['GeelyLynkcoLogin.framework/Versions/A/Resources/*.{svg,gif,jpg,png,mp3,mp4,emo,lproj,plist,json,xib,storyboard}']
#  else
#      #目前默认源码集成
#      puts "GeelyLynkcoLogin源码模式集成".yellow
#      s.prefix_header_file = 'GeelyLynkcoLogin/Classes/PrefixHeader.pch'
#      s.source           = { :git => 'https://gitlab.geely.com/p-internet-marketing/lynkco-app/ios-geelylynkcologin.git', :tag => s.version.to_s }
#      s.source_files = ['GeelyLynkcoLogin/Classes/**/*.{h,m,mm,pch}','GeelyLynkcoLogin/LibrariesVender/Other/**/*.{h,m,mm,pch}']
#      #s.vendored_frameworks = 'GeelyLynkcoLogin/LibrariesVender/Frameworks/**/*.framework'
#      #s.vendored_libraries = 'GeelyLynkcoLogin/LibrariesVender/Other/**/*.a'
#
#      s.resources = ['GeelyLynkcoLogin/Assets/sources/**/*.{svg,gif,jpg,png,mp3,mp4,emo,lproj,plist,json,xib,storyboard}']
#  end
  s.static_framework = true
  s.ios.deployment_target = '9.0'
  

  s.dependency 'Masonry'
  s.dependency 'SVProgressHUD'
  s.dependency 'GeelyLynkcoMain'
  s.dependency 'GeelyLynkcoCore'
  s.dependency 'Countly'
  s.dependency 'AlicloudPush'
  s.dependency 'SWAliGatewayKit'
  
  #------------------ 组件info配置 --------------------------
  #添加这个宏，就不用带mas_前缀
  #define MAS_SHORTHAND
  #添加这个宏，equalTo就等价于mas_equalTo
  #define MAS_SHORTHAND_GLOBALS
  
  s.pod_target_xcconfig = {
    'OTHER_LDFLAGS' => '-ObjC',
    'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
    'GCC_PREPROCESSOR_DEFINITIONS' => 'MAS_SHORTHAND_GLOBALS=1 MAS_SHORTHAND=1',
    'VALID_ARCHS'                   => 'armv7 arm64 x86_64'
  }

  s.user_target_xcconfig = {
    'GCC_PREPROCESSOR_DEFINITIONS' => 'MAS_SHORTHAND_GLOBALS=1 MAS_SHORTHAND=1'
    
  }

  
end
